#pragma once
#include "Emitter.h"
class Particle
{
public:
	Particle(Emitter * MyEmitter);
	~Particle(void);
	void Update(float fElapsedTime);
	void Renew();

	float GetVelX()	 { return m_fVelX;	  };
	float GetVelY()	 { return m_fVelY;	  };
	float GetPosX()	 { return m_fPosX;	  };
	float GetPosY()	 { return m_fPosY;	  };
	int GetColorA()	 { return m_nColorA;  };
	int GetColorR()	 { return m_nColorR;  };
	int GetColorG()	 { return m_nColorG;  };
	int GetColorB()	 { return m_nColorB;  };
	float GetLife()	 { return m_fCurrentLife;  };
	float GetScale()	 { return m_fScale;	  };
	float GetRotation()	 { return m_fRotation;};

private:

	float				m_fVelX;
	float				m_fVelY;

	float					m_fPosX;
	float					m_fPosY;

	int					m_nColorA;
	int					m_nColorR;
	int					m_nColorG;
	int					m_nColorB;
	
	float				m_fLife;
	float				m_fCurrentLife;

	float				m_fScale;

	float				m_fRotation;

	Emitter*			ParentEmitter;
};

